package com.lorenzogao.pley.ui.presenter.contract

import com.lorenzogao.pley.bean.BaseBean
import com.lorenzogao.pley.bean.LoginBean
import com.lorenzogao.pley.ui.BaseView
import io.reactivex.Observable


/**
 * 作者：Lorenzo Gao
 * Date: 2018/1/5
 * Time: 10:56
 * 邮箱：2508719070@qq.com
 * Description:
 */
interface LoginContract {

    interface ILoginModel {

        fun login(phone: String, password: String): Observable<BaseBean<LoginBean>>

    }

    interface LoginView : BaseView {

        fun checkPhoneError()
        fun checkPhoneSuccess()

        fun LoginSuccess(loginBean: LoginBean)

        fun LoginError(msg: String)
    }


}